package com.todo.sight.infrastructure.helper.es.entity;


import com.todo.component.es.entity.BaseESEntity;
import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.Settings;
import org.dromara.easyes.annotation.rely.FieldType;

/**
 * @author azhebuxing
 * @date 2024/12/6 20:45
 * @description
 */
@Data
@Settings(shardsNum = 3, replicasNum = 2)
@IndexName(value = "sight_poi")
public class SightPoiEntity extends BaseESEntity {

    /**
     * 名称
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String name;
    /**
     * 业务大类
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer businessType;
    /**
     * 省份
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String province;
    /**
     * 城市
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String city;
    /**
     * 区县
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String district;
    /**
     * 乡镇
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String town;
    /**
     * 具体地址
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String address;
    /**
     * poi类型
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer poiType;
    /**
     * 经度
     */
    @IndexField(fieldType = FieldType.GEO_POINT)
    private String lon;
    /**
     * 纬度
     */
    @IndexField(fieldType = FieldType.GEO_POINT)
    private String lat;
    /**
     * 是否展示
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer isShow;
}
